package com.jjwxc.jwjskandriod.my.viewholder

import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.recyclerview.widget.RecyclerView
import com.jjwxc.jwjskandriod.R

class PortraitViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
    var cl_grid_item: ConstraintLayout = itemView.findViewById(R.id.cl_grid_item)
    var img_grid: ImageView = itemView.findViewById(R.id.img_grid)
    var img_selct_one: ImageView = itemView.findViewById(R.id.img_selct_one)
    var img_selct_two: ImageView = itemView.findViewById(R.id.img_selct_two)

    companion object {
        fun from(parent: ViewGroup): PortraitViewHolder {
            val view = LayoutInflater.from(parent.context).inflate(R.layout.item_portrait, parent, false)
            return PortraitViewHolder(view)
        }
    }
}